<script setup lang='ts'>
const { id } = defineProps<{
  id: string
}>()

const { data, run } = useRequest(() => apiCategoriesDetailReq({ id }), {
  refreshDeps: [() => id],
  manual: true,
  refreshDepsAction() {
    if (id) {
      run()
    }
  },
})
</script>

<template>
  <div>
    业务组件3 {{ id }}
    <div bg-blue>
      data :{{ data }}
    </div>
  </div>
</template>

<style lang='less' scoped>

</style>
